import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'
import * as getters from './getters'
import index from './modules/index'
import login from './modules/login'
import topicDetail from './modules/topic-detail'
import alert from './modules/alert'
import loading from './modules/loading'
import selfTopics from './modules/self-topics'
import myCollect from './modules/my-collect'
import myMessage from './modules/message'
// import createLogger from 'vuex/dist/logger'

Vue.use(Vuex)

// const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  actions,
  getters,
  modules: {
    index,
    login,
    topicDetail,
    alert,
    loading,
    selfTopics,
    myCollect,
    myMessage
  }
  // strict: debug,
  // plugins: debug ? [createLogger()] : []
})
